package nccloud.web.ct.kjkm_new_s.kjkm_new_smaster.action;
import java.util.HashMap;
import java.util.Map;
import nccloud.web.codeplatform.framework.action.base.BaseAction;
import nccloud.web.codeplatform.framework.action.base.RequstParamWapper;
import nccloud.web.codeplatform.framework.action.base.RequestDTO;
import nccloud.web.codeplatform.framework.action.base.VOTransform;
import nccloud.framework.service.ServiceLocator;
import nccloud.framework.web.container.IRequest;
import nc.vo.nct.kjkm_new_s.Kjkm_new_sMasterVO;
import nc.itf.ct.kjkm_new_s.kjkm_new_smaster.IKjkm_new_sMasterVOService;


/**
 * 新增Action
 */
public class AddKjkm_new_sMasterVOAction extends BaseAction{

	@Override
	public Object doAction(IRequest request, RequstParamWapper paramWapper) throws Throwable{
		//json数据转换
		RequestDTO param = VOTransform.toVO(paramWapper.requestString,RequestDTO.class);
		//获取参数
		Map<String,Object> userJson = param.getUserJson();

		Kjkm_new_sMasterVO[] vos = this.getVOs(param, Kjkm_new_sMasterVO.class);
		
		//获得实体VO
		IKjkm_new_sMasterVOService service = ServiceLocator.find(IKjkm_new_sMasterVOService.class);
		Kjkm_new_sMasterVO vo = service.preAddKjkm_new_sMasterVO(vos[0],userJson);
		return buildResult(param,true,null,vo);
		
	}

}